home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tcl
/
lrange.z
/
lrange
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
llllrrrraaaannnnggggeeee((((3333TTTTccccllll)))) llllrrrraaaannnnggggeeee((((3333TTTTccccllll))))
NNNNAAAAMMMMEEEE
lrange - Return one or more adjacent elements from a list
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
llllrrrraaaannnnggggeeee _l_i_s_t _f_i_r_s_t _l_a_s_t
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_L_i_s_t must be a valid Tcl list. This command will return a new list
consisting of elements _f_i_r_s_t through _l_a_s_t, inclusive. _F_i_r_s_t or _l_a_s_t may |
be eeeennnndddd (or any abbreviation of it) to refer to the last element of the
list. If _f_i_r_s_t is less than zero, it is treated as if it were zero. If
_l_a_s_t is greater than or equal to the number of elements in the list, then
it is treated as if it were eeeennnndddd. If _f_i_r_s_t is greater than _l_a_s_t then an
empty string is returned. Note: ``llllrrrraaaannnnggggeeee _l_i_s_t _f_i_r_s_t _f_i_r_s_t'' does not
always produce the same result as ``lllliiiinnnnddddeeeexxxx _l_i_s_t _f_i_r_s_t'' (although it
often does for simple fields that aren't enclosed in braces); it does,
however, produce exactly the same results as ``lllliiiisssstttt [[[[lllliiiinnnnddddeeeexxxx _l_i_s_t _f_i_r_s_t]]]]''
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
element, list, range, sublist
PPPPaaaaggggeeee 1111